﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Collections;
using System.IO;
using System.Data.SqlClient;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.User.Identity.IsAuthenticated)
            Response.Redirect("login.aspx");

        string strsql = "SELECT * FROM [member] where [user]='" + Page.User.Identity.Name + "'";
        SqlDataReader sdr = SQLHelper.SQLHelper.ExecReader(strsql);
        if (sdr.Read())
        {
                       
             lblName.Text = sdr["name"].ToString();
            lblSex.Text = sdr["sex"].ToString();
            lblBirth.Text = sdr["birth"].ToString();
            lblAddress.Text = sdr["address"].ToString();
            lblPhone.Text = sdr["phone"].ToString();
            lblMail.Text = sdr["email"].ToString();
            Image1.ImageUrl = sdr["image"].ToString();
        }

       
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("ClassManagerInfoModify.aspx");
    }
}